var msg = ["userName", "age", "sex"];
var stdin = process.stdin;
var index = 0;
var infor = [];
console.log(msg[0] + ":");

stdin.on("data", function(chunk){
    var str = chunk.toString("utf-8");
    infor[index] = str;
    index++;
    if(index == 3){
        console.log(infor);
        process.exit();
    }
    console.log(msg[index] + ":");
})